
#ifndef COMMON_INCLUDE__H__
#define COMMON_INCLUDE__H__

#include <crtdbg.h>

#ifndef ASSERTE
#define ASSERTE _ASSERTE
#endif // !ASSERTE

#ifndef ASSERT
#define ASSERT ASSERTE
#endif


// #define IN
// #define OUT
// #define INOUT

#ifndef NOTHING
#define NOTHING
#endif

#ifndef WCMENSURE_RETURN_VAL
#define WCMENSURE_RETURN_VAL(expr, val)				\
	do {											\
	int __atl_condVal=!!(expr);					\
	ASSERTE(__atl_condVal);						\
	if(!(__atl_condVal)) return val;			\
	} while (0) 
#endif // WCMENSURE_RETURN_VAL

#endif